<?

//echo '<pre>';
$str = file_get_contents('http://maps.google.com/maps/geo?q=1600+pennsylvania+ave+washington+dc&output=xml&key=ABQIAAAAREkopdB2DthaLKWLXUcWgxQoU8h1rNpuPlavOloCdSisrcvaLRTN2drNPlHMzM4OcpCreBqE1PmA8g');
//echo '</pre>';
$xml = new SimpleXMLElement($str);

	foreach ($xml->Response->Placemark as $placemark) {
        $accuracy = (int) $placemark->AddressDetails['Accuracy'];
 
        if ($accuracy == 8) {
            // address level accuracy
        }
 
        echo $placemark->address . "\n";
    }

?>